home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 526-550 / disk_540 / sana / netbuff.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  52 lines

  1. #ifndef LIBRARIES_NETBUFF_H
  2. #define LIBRARIES_NETBUFF_H 1
  3. /*
  4. **    $Filename: netbuff.h $
  5. **    $Release: Developer Information$
  6. **    $Revision: 1.1 $
  7. **    $Date: 91/05/14 $
  8. **
  9. **    NetBuff library structure definitions.
  10. **
  11. **    (C) Copyright 1991 Commodore-Amiga Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. /*
  16. ** Contributions from:
  17. **    Raymond S. Brand,   rsbx@cbmvax.commodore.com,  (215) 431-9100
  18. **    Martin Hunt,      martin@cbmvax.commodore.com,  (215) 431-9100
  19. **    Perry Kivolowitz,           ASDG Incorporated,  (608) 273-6585
  20. */
  21.  
  22.  
  23. #ifndef EXEC_TYPES_H
  24. #include <exec/types.h>
  25. #endif /* !EXEC_TYPES_H */
  26. #ifndef EXEC_LISTS_H
  27. #include <exec/lists.h>
  28. #endif /* !EXEC_LISTS_H */
  29.  
  30.  
  31. #define NETBUFFNAME    "netbuff.library"
  32.  
  33.  
  34. struct NetBuffSegment
  35.     {
  36.     struct MinNode Node;    /* segment links               */
  37.     ULONG PhysicalSize;    /* buffer size of this segment */
  38.     ULONG DataOffset;    /* offset to valid data        */
  39.     ULONG DataCount;    /* valid bytes in this segment */
  40.     UBYTE *Buffer;        /* pointer to data buffer area */
  41.     };
  42.  
  43.  
  44. struct NetBuff
  45.     {
  46.     struct MinList List;    /* segments                  */
  47.     ULONG Count;        /* amount of data in NetBuff */
  48.     };
  49.  
  50.  
  51. #endif    /* LIBRARIES_NETBUFF_H */
  52.